<?php get_header(); ?>

<div id="container">
	<div class="containerspacer">
    </div>
	
    <div class="welcome">
    	<!--
		<h1><?php _e('Categories') ?></h1>
        -->
    	<div class="welcomeheadline" id="welcomeheadlinecategory">
   		</div>
    	<h3><?php _e('Remember to check out the projects in the other catagories') ?></h3>
    </div>
    
   	<div id="bigfeaturedprojects">
    	<!--
    	<h2><?php _e('Projects in Category'); ?></h2>
        -->            
        <div id="bigcategoryheadline">
    	</div>
        
        <h4>Projects labeled with <?php single_cat_title(); ?></h4>
    	
		<?php if(have_posts()): ?>
			<?php while(have_posts()) : the_post(); ?>
    
    		<div class="bigfeaturedproject">  
            	<a href="<?php the_permalink(); ?>" title="<?php _e('Check out '); ?><?php the_permalink(); ?>">      	
            		<img class="bigfeaturedprojectthumbnail" src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>"/>
        	
            		<p class="projectname">
	    				<?php the_title(); ?>
           			</p>     
                </a>     
            
            	<p class="projectmetadata">
					<?php _e('Category&#58;'); ?> <?php the_category(', ') ?><?php _e('.'); ?>
				</p>          
        	</div>    
    	<?php endwhile; ?>       
    	<?php else: ?>        
    	<?php endif; ?>
    </div>
    
    <div id="smallprojects">
    	<!--
    	<h2><?php _e('Other Categories'); ?></h2>   
        -->    
        <div id="smallcategoryheadline">
    	</div>   
        <div id="smallcategorylist">   
			<ul>
				<?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0exclude="1"'); ?>
			</ul>
        </div>
    </div>
    
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
</body>  

</div>  

</html>